<script>
import autofit from "autofit.js";
import { onMounted, onBeforeUnmount } from "vue";
export default {
  name: 'App',
  setup() {
    onMounted(() => {
      autofit.init({
        dh: 1080,
        dw: 1920,
        el: "#app",
        resize: true
      },
        false
      );
    });
    onBeforeUnmount(() => {
      autofit.off();
    });
  }
}
</script>

<template>
  <router-view></router-view>
</template>

<style>
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

#app {
  overflow: hidden;
  width: 100%;
  height: 100%;
  border: 1px solid red;
}
</style>